﻿using System;
using System.Globalization;

namespace fc2editor.Utils
{
    public class LuaFloatFormatProvider : IFormatProvider
    {
        #region IFormatProvider Members

        public object GetFormat(Type formatType)
        {
            NumberFormatInfo nfi = new NumberFormatInfo()
            {
                NegativeSign = "-",
                NumberDecimalSeparator = "."
            };

            return nfi;
        }

        #endregion
    }

    public class LuaExportFloatFormatProvider : IFormatProvider
    {
        #region IFormatProvider Members

        public object GetFormat(Type formatType)
        {
            NumberFormatInfo nfi = new NumberFormatInfo()
            {
                NegativeSign = "-",
                NumberDecimalSeparator = "."
            };

            return nfi;
        }

        #endregion
    }
}
